package com.wbsxch.shiro.mapper;

import com.wbsxch.shiro.domain.Role;
import com.wbsxch.shiro.dto.RoleDTO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface RoleMapper {

    int insert(RoleDTO record);

    int delete(Long id);

    int update(RoleDTO record);

    List<RoleDTO> selectAll(RoleDTO record);

    RoleDTO selectOne(Long id);

    List<Long> selectPermissionIdByRoleId(Long id);
}
